package com.tuanzi.loan.api.controller;

import com.tuanzi.loan.schedule.receipt.StatisticsAdvertiseTokenScheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Simon
 * @date 2019/07/29 14:02
 * 用于回传广告信息的token参数刷新以及补全
 */
@RestController
@RequestMapping("/advertise")
public class AdverTokenRefreshController {

    @Autowired
    private StatisticsAdvertiseTokenScheduler statisticsAdvertiseTokenScheduler;

    @GetMapping("/token/wechat")
    public Boolean refreshWechatToken(){
        return statisticsAdvertiseTokenScheduler.statisticWeChatToken();

    }
    @GetMapping("/token/qq")
    public Boolean refreshQQToken(){
        return statisticsAdvertiseTokenScheduler.statisticGuangDianTongToken();
    }
}
